<template>
	<div class="travel">
		<TravelMenus @show='fromMenus' @sho='fromNewMenus'></TravelMenus>
		<TravelList :list_Son='Travel' :list_NewSon='Travel2'></TravelList>
	</div>
</template>

<script>
	// 引入头部
	import TravelMenus from './TravelMenus.vue';
	// 引入数据列表
	import TravelList from './TravelList.vue'
	export default{
		name:'Travel',
		data(){
			return {
				Travel : [],
				Travel2 : []
			}
		},
		methods:{
			fromMenus(val){
				this.Travel = val;
			},
			fromNewMenus(val){
				this.Travel2 = val;
			}
		},
		components:{
			TravelMenus,
			TravelList
		}
	}
</script>

<style scoped>
	.travel{
		height: 25rem;
	}
</style>
